package top.laoshuzi.designpatterns.base.structure.composite;

/**
 * 组件
 */
public interface Component {

    String getName();

    void setName(String name);

    void add(Component component) throws Exception;

    void remove(Component component) throws Exception;

}
